package com.villaday.idf.adapter;

import android.content.Context;

import com.villaday.idf.R;
import com.villaday.idf.base.AbsRecyclerViewAdapter;
import com.villaday.idf.model.Cities_areasEntity;
import com.villaday.idf.model.Surrounds_citiesEntity;

/**
 * Created by tudou on 2018/10/8.
 */

public class BournlistHeadAddrSortAdapter extends AbsRecyclerViewAdapter<Cities_areasEntity.BodyEntity> {
    public BournlistHeadAddrSortAdapter(Context context) {
        super(context, R.layout.item_bourn_head_addr_sort);
    }

    @Override
    public void onBindHolder(AbsRecyclerViewAdapter.RecyclerViewHolder holder, Cities_areasEntity.BodyEntity d, int position) {
        holder.bindTextView(R.id.tv_city, d.getName())
                .setViewSelected(R.id.tv_city,d.isCheck());
    }
}
